package com.lzx.lizhenxing.delivery.controller;

import com.lzx.lizhenxing.common.vo.CommonResult;
import com.lzx.lizhenxing.common.vo.PageVo;
import com.lzx.lizhenxing.delivery.param.DeliveryTaskPageParam;
import com.lzx.lizhenxing.delivery.service.DeliveryPersonTaskService;
import com.lzx.lizhenxing.delivery.vo.DeliveryTaskVo;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/delivery/task")
public class DeliveryPersonTaskController {

    @Resource
    private DeliveryPersonTaskService deliveryPersonTaskService;

    @PostMapping("/getDeliveryTask")
    public CommonResult getDeliveryTask(@RequestBody DeliveryTaskPageParam param){
        PageVo<DeliveryTaskVo> pageVo = deliveryPersonTaskService.getDeliveryTask(param);
        return CommonResult.success(pageVo);
    }


}

